/**
 * 初始化Leancloud
 * Time:2017/10/11
 * By Major_
 * ***/
var APP_ID = '0TF2wqKDRn80dkSBSRjyF6Vr-gzGzoHsz';
var APP_KEY = 'frmWWH2eyMz6h6qUCB9K6ox4';
AV.init({
	appId: APP_ID,
	appKey: APP_KEY
});

var Util={
		// 接受url所传参数
		GetQueryString:function(name){
			var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
			var r = window.location.search.substr(1).match(reg);
			if(r != null)
				return decodeURI(r[2]);
			return null;
		},
	  Parse:function(data){//将云端数据转化为json格式
       var data = JSON.parse(JSON.stringify(data));
       return data;
    }
}
